package com.scuec.groupfive.service.impl;

import com.scuec.groupfive.entity.UserInfo;
import com.scuec.groupfive.mapper.UserLoginMapper;
import com.scuec.groupfive.service.UserLoginService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserLoginServiceImpl implements UserLoginService {

    @Resource
    private UserLoginMapper userLoginMapper; // 注入原生 Mapper

    @Override
    public UserInfo login(String username, String password) {
        return userLoginMapper.selectByUsernameAndPassword(username, password);
    }
}